#include "nvic.h"

void nvic_config(void)
{
    /* configure CAN0 NVIC */
		can_interrupt_enable(CAN0,CAN_INT_RFNE0);
    nvic_irq_enable(USBD_LP_CAN0_RX0_IRQn,0,0);
	  /* configure TIMER1 NVIC */
	  nvic_priority_group_set(NVIC_PRIGROUP_PRE1_SUB3);
    nvic_irq_enable(TIMER1_IRQn, 1, 1);
}
